﻿using System;
using System.Data;
using System.Web.UI;
using System.Xml;
using System.Xml.Xsl;

namespace Solution
{
    public partial class Contact : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var contactDs = new DataSet();

            contactDs.ReadXml(Server.MapPath("/contact.xml"));

            lblPhone.Text = contactDs.Tables[0].Rows[0]["phone"].ToString();
            lblEmail.Text = contactDs.Tables[0].Rows[0]["email"].ToString();
            lnkMailTo.NavigateUrl = "mailto:" + contactDs.Tables[0].Rows[0]["email"];
            lblAddress.Text = contactDs.Tables[0].Rows[0]["address"].ToString();
            lblInfo.Text = contactDs.Tables[0].Rows[0]["info"].ToString();
        }
    }
}